package com.aliyun.oss.pojo;

public class ResultObj {
    private Integer code;
    private Object data;
    private String msg;

    public static ResultObj Success(){
        ResultObj resultObj=new ResultObj();
        resultObj.code=1;
        resultObj.msg="Success";
        return resultObj;
    }

    public static ResultObj Success(Object object){
        ResultObj resultObj=new ResultObj();
        resultObj.code=1;
        resultObj.msg="Success";
        resultObj.data=object;
        return resultObj;
    }

    public static ResultObj Error(){
        ResultObj resultObj=new ResultObj();
        resultObj.code=0;
        resultObj.msg="Sorry,error";
        return resultObj;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
